package top.zimang.loveforwords.Utils;

import android.os.Build;

import java.util.List;

import top.zimang.loveforwords.Model.ExampleSentence;
import top.zimang.loveforwords.Model.Word;

public class WordUtils {
    public static List<ExampleSentence> Filter(List<ExampleSentence> exampleSentenceList){
        int i;
        for (i= exampleSentenceList.size();i>0;i--){
//            if (i%2==0)
//                exampleSentenceList.remove(exampleSentenceList.get(i-1));
            if (exampleSentenceList.get(i-1).getExa()==null||exampleSentenceList.get(i-1).getExa()==""
                    ||exampleSentenceList.get(i-1).getExaTrans()==null||exampleSentenceList.get(i-1).getExaTrans()=="")
                exampleSentenceList.remove(exampleSentenceList.get(i-1));
        }
        return exampleSentenceList;
    }
}
